@import './includes/reset';
@import './includes/header';
@import './includes/footer';
/* 菜单部分 */
#menu{
    width: 100%;
    height: 46px;
    background: #3F2511;
    .container{
      height: 100%;
      line-height: 46px;
      ul{
        display: flex;
        text-align: center;
        color: white;
        li{
          display: flex;
          width: 200px;
          cursor: pointer;
          &:hover{
            background: #FAE569;
            color: #000;
          }
        }
        .active{
            background: #FAE569;
            a{
            color: #000;
            }
        }
       a{
        width: 200px;
        height: 46px;
         color: white;
       }
      }
    }
  }
  /* 商品部分 */
  #product{
    margin-bottom: 15px;
    .container{
      .title{
        height: 50px;
        line-height: 50px;
        font-size: 20px;
        background: #FDF9E0;
        padding-left: 20px;
      }
      .sort{
        height: 50px;
        margin: 10px 0px;
        padding-left: 10px;
        background: #fff;
        & a:first-child{
          font-size: 20px;
          margin-right: 15px;
        }
        a{
          color: #000;
          line-height: 50px;
          margin-left: 5px;
          &:hover{
            text-decoration: underline;
            color: #DF8042;
          }
        }
      }
      /* 商品列表 */
  #productList{
    .container{
      .cart{
        width: 100%;
        height: 56px;
        margin-top: 10px;
        line-height: 56px;
        display: flex;
        background-color: #ffffff;
        h3{
          margin:0px 54px;
          font-size: 18px;
          font-weight: normal;
        }
        p{
          font-size: 14px;
          color: #666666;
        }
      }
    /* 商品详情列表 */
    .productList{
      width: 100%;
      font-size: 14px;
      display: flex;
      flex-wrap: wrap;
      .product{
        width: 276px;
        height: 400px;
        margin-top: 30px;
        background: #fff;
        cursor: pointer;
        margin-right: 23px;
        &:hover{
          transform: scale(1.01);
          box-shadow: 1px 3px 3px 2px rgba(#bdb5b1,.2);
        }
        img{
          width: 100%;
          height: 276px;
        }
        .product-details{
          width: 242px;
          height: 92px;
          padding: 10px 17px 10px 17px;
          color: #A8AAA5;
          //超出显示省略号
           & :nth-child(1){
             width: 242px;      // 设置宽度
             white-space: nowrap;      //强制超出不换行
             overflow: hidden;         //超出隐藏
             text-overflow: ellipsis;   //溢出的标识是省略号
            }
           & :nth-child(2){
             // margin-right:6px;
             padding: 10px 6px;
             line-height: 20px;
             display: flex;
             justify-content: space-between;
             align-items: center;
             & span:nth-child(1){
                 display: inline-block;
                 width: 40px;
                 height: 20px;
                 background-color: #ff4400;
                 color: #ffffff;
                 text-align: center;
               }
           }
           & :nth-child(3){
            span{
              color: #EB5428;
              span{
               font-size: 28px;
              }
            }
           }
        }
      }
    }
    /* 按钮 */
    .showMore{
      width: 250px;
      height: 70px;
      margin: 30px auto;
      button{
        width: 250px;
        height: 70px;
        border-radius: 45px;
        background-color: #FAE569;
        border: 0 solid #000;
        font-size: 24px;
      }
    }
  }
  }
    }
  }